<?php
// >= php 5.3.0
spl_autoload_register(function($class){
    $config = ['TencentYoutuyun/Auth.php', 'TencentYoutuyun/Conf.php', 'TencentYoutuyun/Http.php', 'TencentYoutuyun/Youtu.php'];
    $dir = dirname(__FILE__);
    $class = str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php';
    if (in_array($class, $config)) {
        include($dir.DIRECTORY_SEPARATOR.$class);
    }
});